-
Home
-
MailPoet – Newsletters, Email Marketing, and Automation
-
5.16.3 (latest)
-
Code
-
Classes
- CouponPreProcessor
| Total Complexity |
37 |
| Dependencies |
9 |
| Dependents |
3 |
| Total lines |
189 |
| Lines of code |
127 |
| Logical lines of code |
75 |
| Comment lines |
24 |
| Methods |
9 |
| Properties |
3 |
Methods 9
| Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
| addOrUpdateCoupon() |
A |
40 |
15 |
52 |
| ensureCouponForBlocks() |
A |
53 |
9 |
21 |
| processCoupons() |
S |
55 |
5 |
21 |
| getItemIds() |
S |
68 |
2 |
8 |
| generateRandomSegment() |
S |
64 |
2 |
9 |
| __construct() |
S |
77 |
1 |
4 |
| generateRandomCode() |
S |
70 |
1 |
6 |
| shouldGenerateCoupon() |
S |
79 |
1 |
3 |
| shouldPersist() |
S |
79 |
1 |
3 |